package com.bbcare.comm.enumeration;

/** 
 * @desc: 消息类型
 * @author: liqianlong
 * @date: 20210407
 */ 
public enum MessageTypeEnum {

    ZHZD(1, "诊后指导"),
    XCJCTX(2, "下次检查提醒"),
    PCBG(3, "评测报告"),
    KSXJ(4, "科室宣教"),
    YYQRTZ(5, "预约确认通知"),
    YYCGTZ(6, "预约成功通知"),
    FNTZ(7, "发奶通知"),
    BRTZ(8, "备乳通知"),
    ZPJL(9, "照片记录"),
    TYXS(10, "通用消息");

    private int value;
    private String name;

    MessageTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getName(int value) {
        for (MessageTypeEnum booleanStatus : MessageTypeEnum.values()) {
            if (booleanStatus.getValue()==value) {
                return booleanStatus.getName();
            }
        }
        return "";
    }
}
